package me.pplay.playtalk.util;

import me.pplay.playtalk.service.PlayTalkService;
import android.content.Context;
import android.content.Intent;

public class ServiceUtil {
	public static final String RECEIVER_ACTION = "android.intent.action.palyTalk";
	
	public static void startService(Context context){
		Intent intent	= new Intent(context, PlayTalkService.class);
		if(!context.stopService(intent))
			context.stopService(intent);
		context.startService(intent); 
	}

	public static void stopService(Context context){
		Intent intent	= new Intent(context, PlayTalkService.class);
		context.stopService(intent);
	}
	
}
